﻿using System;

static class UserIntefrace
{
    public const string INVALID_MOVE_MSG = "Invalid move!";
    public const string INVALID_COMMAND_MSG = "Invalid command!";
    public const string SCOREBOARD_EMPTY_MSG = "The scoreboard is empty.";
    public const string SCOREBOARD_INPUT_MSG = "Please enter your name for the top scoreboard: ";
    public const string GOODBYE_MSG = "Good Bye";
    public const string USER_INPUT_MSG = "Enter your move (L=left,R-right, U=up, D=down): ";
    public const string WELCOME_MSG =
        "Welcome to “Labyrinth” game. Please try to escape. Use 'top' to view the top scoreboard, " +
        "'restart' to start a new game and 'exit' to quit the game.";

    public static void PrintWelcomeMessage()
    {
        Console.WriteLine(WELCOME_MSG);
    }

    public static void PrintInvalidCommandMessage()
    {
        Console.WriteLine(INVALID_COMMAND_MSG);
    }

    public static void PrintGoodbyeMessage()
    {
        Console.WriteLine(GOODBYE_MSG);
    }

    public static void PrintScoreBoardEmptyMessage()
    {
        Console.WriteLine(SCOREBOARD_EMPTY_MSG);
    }

    public static void PrintScoreBoardInputMessage(int movesCount)
    {
        Console.WriteLine("Congratulations! You escaped in {0} moves.", movesCount);
        Console.WriteLine(SCOREBOARD_INPUT_MSG);
    }

    public static string GetInput()
    {
        Console.Write(USER_INPUT_MSG);
        string inputLine = Console.ReadLine();
        return inputLine;
    }

}
